package cn.edu.scau.cmi.linhongxin.orm.domain;

public class Student {
	private int id;
	private String name;
	private int tutor;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getTutor() {
		return tutor;
	}
	public void setTutor(int tutor) {
		this.tutor = tutor;
	}
	public Student() {
	}	
	public Student(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public Student(int id, String name, int tutor) {
		this(id, name);
		if(tutor != 0) this.tutor = tutor;
	}	
	@Override
	public String toString() {
		return "id: " + getId() + ", name: " + getName() + ", tutor: " + getTutor(); 
	}
}
